﻿using cnFederal.FaCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cnFederal.Controls
{
    public partial class CustomCtrl : System.Web.UI.UserControl
    {
          List<FaPost> _postList;
          public CustomCtrl()
        {
            FaPosts.Load();
            _postList = FaPosts.GetLastCustomPosts(3);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ListViewCustom.Items.Clear();
            ListViewCustom.DataSource = _postList;
            ListViewCustom.DataBind();
           
        }
     
        public System.Drawing.Color GetRowColor(int index)
        {
            return CnfiFunctions.GetRowColor(index);
        }
    }
}